package org.example.springcloud.controller;

import org.example.springcloud.entities.Payment;
import org.example.springcloud.result.CommonResult;

/**
 * Created with IntelliJ IDEA.
 *
 * @author Jandmla
 * Date: 2022/7/22
 * Time: 15:20
 * Description:
 */
public interface OrderController {

    /**
     * 添加数据
     * @param payment 数据实体
     * @return 添加结果
     */
    public CommonResult<Payment> create(Payment payment);

    /**
     * 获取数据
     * @param id ID
     * @return 获取结果
     */
    public CommonResult<Payment> getPayment(Long id);

}